<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>注册页面</title>
    <link rel="stylesheet" href="${pageContext.request.contextPath}/static/bootstrap-4.6.2-dist/css/bootstrap.css">
    <style>
        body, html {
            margin: 0;
            padding: 0;
            height: 100%;
            font-family: Arial, sans-serif;
            background: linear-gradient(135deg, #ff7eb3, #ff758c) no-repeat;
            background-size: cover;
            color: #fff;
        }
        .wrapper {
            display: flex;
            height: 100%;
            align-items: center;
        }
        .form-container {
            width: 350px;
            background-color: #111;
            padding: 40px;
            border-radius: 15px;
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.6);
            margin-left: 50px;
        }
        .form-title {
            font-size: 36px;
            text-align: center;
            font-weight: bold;
            background: linear-gradient(90deg, #ff7eb3, #ff758c);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            margin-bottom: 20px;
        }
        .form-group label {
            color: #ff758c;
            font-weight: bold;
        }
        .form-control {
            border-radius: 25px;
            border: 1px solid #ff758c;
            background: #222;
            color: #fff;
            padding-left: 15px;
        }
        .form-control:focus {
            border-color: #ff7eb3;
            box-shadow: 0 0 10px rgba(255, 118, 140, 0.5);
        }
        .btn-custom {
            width: 100%;
            background: linear-gradient(135deg, #ff758c, #ff7eb3);
            border: none;
            border-radius: 25px;
            color: #fff;
            padding: 10px 0;
            font-size: 18px;
            transition: transform 0.3s ease, background 0.3s ease;
        }
        .btn-custom:hover {
            transform: scale(1.05) rotate(1deg);
            background: linear-gradient(135deg, #ff7eb3, #ff758c);
        }
        .back-btn {
            margin-top: 10px;
            text-align: center;
            font-size: 16px;
        }
        .back-btn a {
            color: #ff7eb3;
            text-decoration: none;
        }
        .back-btn a:hover {
            text-decoration: underline;
        }
        @media screen and (max-width: 768px) {
            .form-container {
                margin-left: auto;
                margin-right: auto;
            }
        }
    </style>
</head>
<body>
<div class="wrapper">
    <div class="form-container">
        <div class="form-title">注册</div>
        <form action="register" method="post">
            <div class="form-group">
                <label for="username">用户名</label>
                <input id="username" type="text" required class="form-control" name="username" placeholder="请输入用户名">
            </div>
            <div class="form-group">
                <label for="password">密码</label>
                <input id="password" type="password" required class="form-control" name="password" placeholder="请输入密码">
            </div>
            <div class="form-group">
                <label for="password2">确认密码</label>
                <input id="password2" type="password" required class="form-control" name="password2" placeholder="再次输入密码">
            </div>
            <div class="form-group">
                <label>身份选择</label>
                <div>
                    <input type="radio" id="mvo" name="role" value="MVO" required>
                    <label for="mvo">品牌商</label>
                </div>
                <div>
                    <input type="radio" id="bvo" name="role" value="BVO">
                    <label for="bvo">借卖方</label>
                </div>
            </div>
            <button type="submit" class="btn btn-custom">注册</button>
            <div class="back-btn">
                <a href="login.jsp">返回登录</a>
            </div>
        </form>
    </div>
</div>
</body>
</html>
